package com.example.springbootdemo09.service;

import com.example.springbootdemo09.domain.Teacher;
import com.example.springbootdemo09.query.TeacherQuery;
import com.example.springbootdemo09.utils.R;

import java.util.List;
import java.util.Map;

public interface ITeacherService {
    R add(Teacher teacher);
    //查询所有
    List<Teacher> findAll();
    //查询单个
    Teacher findOne(Long id);
    //修改
    R  updete(Teacher teacher);
    //删除
    R  delete(Long id);
 R fenye(TeacherQuery teacherQuery);
    //批量删除
    R pathDele(Long[] id);
}
